\documentclass[a4paper]{article}
\usepackage[left=1in,top=1in,right=1in,bottom=1in]{geometry}
\usepackage{xcolor}


\usepackage{cmbright}
  \usepackage[T1]{fontenc}
  \usepackage[utf8]{inputenc}
  
\usepackage{booktabs}
\usepackage{longtable}
\usepackage{array}
\usepackage{multirow}
\usepackage{wrapfig}
\usepackage{float}
\usepackage{colortbl}
\usepackage{pdflscape}
\usepackage{tabu}
\usepackage{threeparttable}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{dcolumn} 

\newcommand{\beginsupplement}{
  \setcounter{table}{0}  
  \renewcommand{\thetable}{A\arabic{table}} 
  \setcounter{figure}{0} 
  \renewcommand{\thefigure}{A\arabic{figure}}
}

\providecommand{\tightlist}{%
  \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}

\usepackage{abstract}
\renewcommand{\abstractname}{}    % clear the title
\renewcommand{\absnamepos}{empty} % originally center

\renewenvironment{abstract}
 {{%
    \setlength{\leftmargin}{0mm}
    \setlength{\rightmargin}{\leftmargin}%
  }%
  \relax}
 {\endlist}

\makeatletter
\def\@maketitle{%
  \newpage
%  \null
%  \vskip 2em%
%  \begin{center}%
  \let \footnote \thanks
    {\fontsize{18}{20}\selectfont\raggedright  \setlength{\parindent}{0pt} \@title \par}%
}
%\fi
\makeatother




\setcounter{secnumdepth}{0}

\usepackage{longtable,booktabs}


 



\author{}


\date{}

\usepackage{titlesec}

\titleformat*{\section}{\normalsize\bfseries}
\titleformat*{\subsection}{\normalsize\itshape}
\titleformat*{\subsubsection}{\normalsize\itshape}
\titleformat*{\paragraph}{\normalsize\itshape}
\titleformat*{\subparagraph}{\normalsize\itshape}


\usepackage{natbib}
\bibliographystyle{apsr}



\newtheorem{hypothesis}{Hypothesis}
\usepackage{setspace}

\makeatletter
\@ifpackageloaded{hyperref}{}{%
\ifxetex
  \usepackage[setpagesize=false, % page size defined by xetex
              unicode=false, % unicode breaks when used with xetex
              xetex]{hyperref}
\else
  \usepackage[unicode=true]{hyperref}
\fi
}
\@ifpackageloaded{color}{
    \PassOptionsToPackage{usenames,dvipsnames}{color}
}{%
    \usepackage[usenames,dvipsnames]{color}
}
\makeatother
\hypersetup{breaklinks=true,
            bookmarks=true,
            pdfauthor={},
             pdfkeywords = {Party Identity, Policy Vote, Party labels},  
            pdftitle={},
            colorlinks=true,
            citecolor=blue,
            urlcolor=blue,
            linkcolor=magenta,
            pdfborder={0 0 0}}
\urlstyle{same}  % don't use monospace font for urls

% Use Fira typeface
\usepackage[sfdefault,book,semibold]{FiraSans}
\usepackage{FiraMono} 
\onehalfspacing

\begin{document}
	
% \pagenumbering{arabic}% resets `page` counter to 1 
%    




\vskip 6.5pt

\noindent \doublespacing \beginsupplement

\hypertarget{appendix-additional-figures-and-tables}{%
\subsection{Appendix: Additional figures and tables}\label{appendix-additional-figures-and-tables}}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/Closeness2017-1} 

}

\caption{Closeness of candidates' positions to respondents' positions with and without party labels as predictors of candidate choice.
Controlling for matching party affiliation (bottom) and not controlling for matching party affiliation (top). Note: only Conservative and Labour voters in the 2017 general election included.}\label{fig:Closeness2017}
\end{figure}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/Homophily-with-Interaction-1} 

}

\caption{Closness as predictor of vote choice with first-degree interactions}\label{fig:Homophily-with-Interaction}
\end{figure}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/Homophily-with-Quadratic-1} 

}

\caption{Closness as predictor of vote choice with quadratic model}\label{fig:Homophily-with-Quadratic}
\end{figure}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/Correctvote2017-1} 

}

\caption{Proportion of respondents that chose each candidate in the experiment by their vote in the 2017 general election}\label{fig:Correctvote2017}
\end{figure}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/Inference-and-Homophily-1} 

}

\caption{Candidates' characteristics and interaction with respondents' characteristics as predictors of candidate choice}\label{fig:Inference-and-Homophily}
\end{figure}

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/By-LevelofAttention-1} 

}

\caption{Experiment choice by previous vote for respondents with low attention to politics (top) and high attention to politics (bottom)}\label{fig:By-LevelofAttention}
\end{figure}

\newpage

\begin{figure}[H]

{\centering \includegraphics[width=\linewidth]{Party_Labels_Effect_PSRM_Appendix_files/figure-latex/By-partyID-1} 

}

\caption{Experiment choice by respondents party identification}\label{fig:By-partyID}
\end{figure}

\newpage

\begin{table}[!h]

\caption{\label{tab:LevelsChunk4}\label{tab:Levels}Levels used for each characteristic of candidates: first part}
\centering
\fontsize{11}{13}\selectfont
\begin{tabular}[t]{>{\raggedright\arraybackslash}p{20em}>{\raggedright\arraybackslash}p{24em}}
\toprule
Characteristic & Level\\
\midrule
\textbf{\cellcolor{gray!6}{In a scale from 1 to 5,cuts to local services in your area have not gone far enough or too far?}} & \cellcolor{gray!6}{Says that cuts to local services have not gone nearly far enough}\\
\textbf{} & Says that cuts to local services have not gone far enough\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that cuts to local services have been about right}\\
\textbf{} & Says that cuts to local services have gone too far\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that cuts to local services have gone much too far}\\
\addlinespace
\textbf{In a scale from 1 to 5,measures to protect the environment have not gone far enough or too far} & Says that measures to protect the environment have not gone nearly far enough\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that measures to protect the environment have not gone far enough}\\
\textbf{} & Says that measures to protect the environment have been about right\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that measures to protect the environment have gone too far}\\
\textbf{} & Says that measures to protect the environment have gone much too far\\
\addlinespace
\textbf{\cellcolor{gray!6}{In a scale from 1 to 5, how much do you agree with the statement “Government should redistribute income from the better off to those who are less well-off}} & \cellcolor{gray!6}{Strongly disagrees with the statement that government should redistribute income}\\
\textbf{} & Disagrees with the statement that government should redistribute income\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Neither agrees nor disagrees with the statement that government should redistribute income}\\
\textbf{} & Agrees with the statement that government should redistribute income\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Strongly agrees with the statement that government should redistribute income}\\
\addlinespace
\textbf{In a scale from 1 to 7,do you think immigration is good or bad for Britain's economy?} & Says that immigration is bad for the economy\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that immigration is somewhat  bad for the economy}\\
\textbf{} & Says that immigration is a little bad for the economy\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that immigration is neither good nor bad for the economy}\\
\textbf{} & Says that immigration is a little good for the economy\\
\addlinespace
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Says that immigration is somewhat good for the economy}\\
\textbf{} & Says that immigration is good for the economy\\
\bottomrule
\end{tabular}
\end{table}

\newpage

\begin{table}[!h]

\caption{\label{tab:LevelsChunk3}\label{tab:Levels2}Levels used for each characteristic of candidates: second part}
\centering
\fontsize{11}{13}\selectfont
\begin{tabular}[t]{>{\raggedright\arraybackslash}p{22em}>{\raggedright\arraybackslash}p{20em}}
\toprule
Characteristic & Level\\
\midrule
\textbf{\cellcolor{gray!6}{Party}} & \cellcolor{gray!6}{Conservative Party}\\
\textbf{} & Labour Party\\
\textbf{\cellcolor{gray!6}{Gender}} & \cellcolor{gray!6}{Male}\\
\textbf{} & Female\\
\textbf{\cellcolor{gray!6}{Age}} & \cellcolor{gray!6}{{}[N] years old}\\
\addlinespace
\textbf{Were you born in the constituency?} & Born in constituency\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Not born in constituency}\\
\textbf{Have you ever been elected a local councillor?} & Has been elected a local councillor\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Has never been elected a local councillor}\\
\textbf{How did you vote in the referendum on Britain’s membership of the European Union on 23 June 2016?} & Voted to leave\\
\addlinespace
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Voted to remain}\\
\textbf{In politics people sometimes talk of left and right. In a scale from 0 to 10, where would you place yourself on the following scale? (smaller values more left, larger values more right)} & Left\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Centre left}\\
\textbf{} & Centre\\
\textbf{\cellcolor{gray!6}{}} & \cellcolor{gray!6}{Centre right}\\
\addlinespace
\textbf{} & Right\\
\bottomrule
\end{tabular}
\end{table}

\newpage

\newpage
\singlespacing 
\bibliography{master.bib}

\end{document}
